package main;

public class TheaterEvent 
{
	public enum State
	{
	 Open,
	 Closed
	};
	private static long lastId = 0;
	private long id;
	public String Title;
	public String Date;
	public String Time;
	public int MaxCapacity;
	public State BookingState;
	private long NextId()
	{
		return ++lastId;
	}
	public TheaterEvent(String title, String date, String time, int capacity)
	{
		id=NextId();
		Title=new String(title);
		Date=new String(date);
		Time=new String(time);
		MaxCapacity=capacity;
	}
	public String toString()
	{
		String str=new String();
		str+="ID: "+id+"\n";
		str+="Title: "+Title+"\n";
		str+="Date: "+Date+" "+Time+"\n";
		str+="Capacity: "+MaxCapacity+"\n";
		return str;
		
	}
}
